<template>
  <div class="dashboard-container">
    <Analysis />
    <Sales />
    <Monitor />
  </div>
</template>

<script>
import { mapActions } from 'vuex'
import Analysis from './analysis'
import Sales from './sales'
import Monitor from './monitor'
export default {
  name: 'Dashboard',
  components: {
    Analysis,
    Sales,
    Monitor
  },
  async mounted() {
    await this.getHomeData()
  },
  methods: {
    ...mapActions('home', ['getHomeData'])
  }
  // computed: {
  //   ...('home', ['homeDate'])
  // }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
